const crypto = require("node:crypto");
function hash(target, algorithm = "md5", digestEncoding = "hex") {
    return crypto.createHash(algorithm).update(target).digest(digestEncoding);
}

module.exports = {
    hash,
};
